package com.jackson.springxxljob.job;

/*
 * Author: JacksonCoder
 * FileName: TestJob
 * Version: 1.0.0
 * Date: 2025/7/17
 */

import com.xxl.job.core.handler.annotation.XxlJob;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class HelloXxlJob {

    @Value("${server.port}")
    private String port;

    @XxlJob("demoJobHandler")
    public void echo() {
        System.out.println("Hello XXL-JOB " + port);
    }


}
